package com.ib.review.repository;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ib.review.pojo.dto.KnowledgeParam;
import com.ib.review.pojo.dto.KnowledgeQuery;
import com.ib.review.pojo.po.KnowledgeBasePO;

import java.util.List;

public interface KnowledgeRepository {

    Page<KnowledgeBasePO> query(KnowledgeQuery knowledgeQuery);

    void add(KnowledgeBasePO po);

    void delete(String knowledgeId);

    void edit(KnowledgeBasePO po);

    void batchDelete(List<String> ids);

    void batchInsert(List<KnowledgeBasePO> list);

    Integer selectCountByName(KnowledgeParam knowledgeParam);

    KnowledgeBasePO queryByName(KnowledgeParam knowledgeParam);
}
